package com.soft.dao.impl;

import com.soft.dao.UserDao;
import com.soft.db.DB;
import com.soft.pojo.User;

public class UserDaoImpl implements UserDao {
    //按用户名和密码查询的方法
    public User searchUserByUserNameAndPwd(String userName,String pwd) {
        if (DB.user.getUsername().equals(userName) &&
        DB.user.getPassword().equals(pwd)){
            return DB.user;
        }else{
            return null;
        }
    }
}
